package com.tensquare.notice.client;
/*
 *ClassName:UserClient
 *Description:通过feign调用用户微服务
 *@author:可爱的大鸭子
 */

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value="tensquare-user")
public interface UserClient {
    //根据用户id查询用户信息
    @RequestMapping(value="/user/{id}",method = RequestMethod.GET)
    public Result findById(@PathVariable("id") String id);
}
